<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/demo/paymanage/PayManage.jsx此处编写
 -->
<template>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
        :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
        :table="table" :extend="extend">
    </view-grid>
</template>
<script>
import extend from "@/extension/demo/paymanage/PayManage.jsx";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: 'PayID',
            footer: "Foots",
            cnName: '付款管理',
            name: 'paymanage/PayManage',
            url: "/PayManage/",
            sortName: "CreateTime"
        });
        const editFormFields = ref({});
        const editFormOptions = ref([]);
        const searchFormFields = ref({});
        const searchFormOptions = ref([]);
        const columns = ref([{ field: 'PayID', title: '主键ID', type: 'string', width: 110, hidden: true, readonly: true, require: true, align: 'left' },
        { field: 'PayTitle', title: '标题', type: 'string', width: 220, align: 'left', sort: true },
        { field: 'PaymentAmount', title: '付款金额', type: 'decimal', width: 110, align: 'left' },
        { field: 'PayType', title: '付款方式', type: 'int', width: 110, align: 'left' },
        { field: 'Payment', title: '支付对象', type: 'string', width: 220, align: 'left' },
        { field: 'OpeningBank', title: '开户行', type: 'string', width: 220, align: 'left' },
        { field: 'BankAccount', title: '银行账号', type: 'string', width: 220, align: 'left' },
        { field: 'Proposer', title: '申请人', type: 'string', width: 220, align: 'left' },
        { field: 'PayDate', title: '付款日期', type: 'datetime', width: 150, align: 'left', sort: true },
        { field: 'PurposeDescription', title: '用途描述', type: 'string', width: 220, align: 'left' },
        { field: 'Remark', title: '备注', type: 'string', width: 220, align: 'left' },
        { field: 'TicketAttachments', title: '票据附件', type: 'string', width: 220, align: 'left' },
        { field: 'CreateName', title: '创建人', type: 'string', width: 220, align: 'left' },
        { field: 'CreateTime', title: '创建时间', type: 'datetime', sort: true, width: 150, align: 'left', sort: true },
        { field: 'Approver', title: '审批人', type: 'string', width: 220, align: 'left' },
        { field: 'UpdateName', title: '修改人', type: 'string', width: 220, align: 'left' },
        { field: 'UpdateTime', title: '修改时间', type: 'datetime', width: 150, align: 'left', sort: true },
        { field: 'IsDel', title: '逻辑删除', type: 'int', width: 110, align: 'left' },
        { field: 'AuditStatus', title: '审批状态', type: 'int', width: 120, align: 'left' }]);
        const detail = ref({
            cnName: "#detailCnName",
            table: "#detailTable",
            columns: [],
            sortName: "",
            key: ""
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});
</script>
